/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.pro.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.pro.entity.Folder;
import com.thinkgem.jeesite.modules.pro.dao.FolderDao;

/**
 * 文件夹管理Service
 * @author fanqinglong
 * @version 2017-05-03
 */
@Service
@Transactional(readOnly = true)
public class FolderService extends CrudService<FolderDao, Folder> {

	public Folder get(String id) {
		return super.get(id);
	}
	
	public List<Folder> findList(Folder folder) {
		return super.findList(folder);
	}
	
	public Page<Folder> findPage(Page<Folder> page, Folder folder) {
		return super.findPage(page, folder);
	}
	
	@Transactional(readOnly = false)
	public void save(Folder folder) {
		super.save(folder);
	}
	
	@Transactional(readOnly = false)
	public void delete(Folder folder) {
		super.delete(folder);
	}
	
	public Folder findByGroupId(String groupId){
		return dao.findByGroupId(groupId);
	}
}